package vcp.gui.components;

import java.awt.LayoutManager;

import javax.swing.SwingUtilities;

public class VCPPanel extends VCPPanelAbstract{
	public VCPPanel(LayoutManager layoutManager){
		 super(layoutManager);
	}
	public VCPPanel(){} // keep empty for creating inner constructors
	public VCPFrame getParentFrame(){		
		return (VCPFrame) SwingUtilities.getWindowAncestor(this);
	}
	public void loadPanel(VCPPanelAbstract panel){
		if(panel!=null){
			removeAll();
			add(panel);
			revalidate();
			repaint();
			getParentFrame().pack();
		}		
	}
	
	
}
